import { post } from '../http'

// 获取合同模板列表
export const getContractTemplateList = (data: any) =>
  post({
    url: '/contractTemplate/pageList',
    data,
  })

// 获取合同签署记录
export const getContractSignRecord = (data: any) =>
  post({
    url: '/svmsContract/signRecord',
    data,
  })

// 获取企业/个人认证记录
export const getContractAuthRecord = (data: any) =>
  post({
    url: '/ident/record',
    data,
  })

// 获取企业/个人认证费用
export const getContractAuthFee = (data: any) =>
  post({
    url: '/ident/count',
    data,
  })

// 获取认证记录表头
export const getContractAuthRecordHeader = (data: any) =>
  post({
    url: '/ident/recordCount',
    data,
  })

// 新增合同模板
export const addContractTemplate = (data: any) =>
  post({
    url: '/contractTemplate/add',
    data,
  })

// 编辑合同模板
export const editContractTemplate = (data: any) =>
  post({
    url: '/contractTemplate/edit',
    data,
  })

// 获取合同模板详情
export const getContractTemplateDetail = (data: any) =>
  post({
    url: '/contractTemplate/detail',
    data,
  })

// 添加合同门店
export const addContractStore = (data: any) =>
  post({
    url: '/contractTemplate/addContractSite',
    data,
  })

// 获取合同详情
export const getContractDetail = (data: any) =>
  post({
    url: '/contractTemplate/detail',
    data,
  })

// 修改合同模板状态
export const changeContractTemplateStatus = (data: any) =>
  post({
    url: '/contractTemplate/updateState',
    data,
  })

// 查看操作记录
export const getContractOperationRecord = (data: any) =>
  post({
    url: '/contractTemplate/getOperatingLog',
    data,
  })

// 获取承租方签署链接
export const getContractTenantSignUrl = (data: any) =>
  post({
    url: '/svmsContract/getLesseeSignUrl',
    data,
  })

// 导出认证记录
export const exportContractSignRecord = (data: any) =>
  post({
    url: '/ident/exportIdentExcel',
    data,
  })

// 导出签署记录
export const exportContractAuthRecord = (data: any) =>
  post({
    url: '/svmsContract/exportSignRecord',
    data,
  })

// 获取应用门店
export const getContractStoreList = (data: any) =>
  post({
    url: '/contractTemplate/getContractTemplateSiteList',
    data,
  })

// 合同模板预览
export const previewContractTemplate = (data: any) =>
  post({
    url: '/contractTemplate/preview',
    data,
  })

// 签署记录表头统计
export const contractSignRecordHeader = (data: any) =>
  post({
    url: '/svmsContract/tenantConsumerAmount',
    data,
  })

// 签署记录统计
export const contractSignRecordCount = (data: any) =>
  post({
    url: '/svmsContract/contractStatusCount',
    data,
  })

// 合同模板查看应用门店
export const getContractTemplateStore = (data: any) =>
  post({
    url: '/contractTemplate/selectTemplateSite',
    data,
  })

// 查询已发送签署短信数量
export const getMsgNumCount = (data: any) =>
  post({
    url: '/svmsContract/getMsgNumCount',
    data,
  })

// 电子合同发送签署短信
export const sendLesseeSignMsg = (data: any) =>
  post({
    url: '/svmsContract/sendLesseeSignMsg',
    data,
  })
